<?php

namespace app\admin\model\investor;

use think\Model;


class Shop extends Model
{

    

    

    // 表名
    protected $name = 'investor_shop';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
    

    public function investor()
    {
        return $this->belongsTo('app\admin\model\investor\Info', 'investor_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }

    public function wanshop()
    {
        return $this->belongsTo('app\admin\model\wanlshop\Shop', 'shop_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }

    public function level()
    {
        return $this->belongsTo('app\admin\model\investor\Level', 'level_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }






}
